#include "mylineEdit.h"



MyLineEdit::MyLineEdit(QWidget *parent )
    : QWidget(parent)
{

}
void MyLineEdit::mousePressEvent(QMouseEvent *event) {
    // 调用基类的mousePressEvent处理其他逻辑
    QWidget::mousePressEvent(event);

    // 将光标设置到文本的末尾
    //this->setCursorPosition(this->text().length());
}
